package cn.org.eshow.webapp.action.response;

import cn.org.eshow.model.AdditionalOrder;

import java.util.Date;

/**
 * 补单
 */
public class AdditionalOrderResponse {

    private Integer id;
    private Date addTime = new Date();// 添加时间
    private Date updateTime = new Date();// 更新时间
    private String name = "";//单名
    private String no = "";//订单号
    private Integer state ;//补单状态 (0待付款  1 已付款   -1已取消)
    private Double price = 0.0;//成交价格

    public AdditionalOrderResponse() {
    }

    public AdditionalOrderResponse(AdditionalOrder addititonalOrder) {
        this.id = addititonalOrder.getId();
        this.addTime = addititonalOrder.getAddTime();
        this.updateTime = addititonalOrder.getAddTime();
        this.name = addititonalOrder.getName();
        this.no = addititonalOrder.getNo();
        this.state = addititonalOrder.getState();
        this.price = addititonalOrder.getPrice();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
